﻿
using BW.EatRabbit.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.EatRabbit.Infrastructure
{
    public class DataDbContext : DbContext
    {
        public DataDbContext(DbContextOptions<DataDbContext> options) : base(options)
        {
        }
        //protected override void OnModelCreating(ModelBuilder modelBuilder)
        //{
        //    modelBuilder.Entity<BaseModel>().HasQueryFilter(x => !x.IsDeleted);
        //}
        public DbSet<BasicInformation> BasicInformations { get; set; }

        public DbSet<Breeding_Information> Breeding_Informations { get; set; }

        public DbSet<City_Information> City_Informations { get; set; }

        public DbSet<DeepProcessing_Company> DeepProcessing_Companies { get; set; }

        public DbSet<Export> Exports { get; set; }

        public DbSet<Farming_Company> Farming_Companies{ get; set; }

        public DbSet<Goods> Goods { get; set; }

        public DbSet<Immune_Information> Immune_Informations { get; set; }

        public DbSet<Picture_Information> Picture_Informations { get; set; }

        public DbSet<Processing_Information> Processing_Informations { get; set; }

        public DbSet<Provider_Information> Provider_Informations{ get; set; }

        public DbSet<Province_Information> Province_Informations { get; set; }

        public DbSet<ProvinceCity> ProvinceCities { get; set; }

        public DbSet<Role> Roles { get; set; }

        public DbSet<RoleUser> RoleUsers { get; set; }

        public DbSet<Slaughter_Company> Slaughter_Companies { get; set; }

        public DbSet<Slaughter_Information> Slaughter_Informations { get; set; }

        public DbSet<User> Users { get; set; }
    }
}
